
const widgetPart = {
    state: {
        widgetsNew: {
            part1: [],
            part2: [],
            part3: []
        }
    },

    mutations: {
        saveInPartWidget: (state, index, data) => {
            state.widgetsNew["part"+index] = data
            // if (index == 1) {
            //     state.widgetsNew.part1 = data
            // } else if (index == 2) {
            //     state.widgetsNew.part2 = data
            // } else {
            //     state.widgetsNew.part3 = data
            // }
        },
    },

    actions: {
    }
}

export default widgetPart
